﻿using System;

namespace ServicesDirectory.UserControl
{
    public partial class PremiseDetail3 : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            ListContact1.CloseControl += ListContact1_ClosrControl;
        }

        private void ListContact1_ClosrControl(object sender, EventArgs e)
        {
            pnLookupContact.Visible = false;
        }

        protected void CbVisitorParking_CheckedChanged(object sender, EventArgs e)
        {
            TxtVisitorParkingAlter.Enabled = !CbVisitorParking.Checked;
            TxtVisitorParkingSpace.Enabled = CbVisitorParking.Checked;
        }

        protected void LbtLookupContact_Click(object sender, EventArgs e)
        {
            pnLookupContact.Visible = true;
        }

        protected void CbHostVisit_CheckedChanged(object sender, EventArgs e)
        {
            LbtLookupContact1.Enabled = true;
        }
    }
}